package com.anfeng.cms.domain.attendance;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴朋
 * @since 2019-07-18
 */
@TableName("af_roster_detail")
public class AfRosterDetail extends Model<AfRosterDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 排班id 详情
     */
	private String id;
    /**
     * 排班id
     */
	@TableField("roster_id")
	private String rosterId;
    /**
     * 排班名
     */
	@TableField("roster_name")
	private String rosterName;
    /**
     * 排班类型 （1 长期排班  2 临时排班）
     */
	@TableField("roster_type")
	private Integer rosterType;
	/**
	 * 临时调班排班之前的班次
	 */
	@TableField("before_roster_id")
	private String beforeRosterId;
	/**
	 * 临时排班 开始时间
	 */
	@TableField("start_time")
	private Date startTime;
	/**
	 * 临时排班 结束时间
	 */
	@TableField("end_time")
	private Date endTime;
    /**
     * 员工id
     */
	@TableField("emp_id")
	private String empId;
    /**
     * 员工名字
     */
	@TableField("emp_name")
	private String empName;
    /**
     * 员工编号
     */
	@TableField("emp_no")
	private String empNo;
    /**
     * 员工手机号
     */
	@TableField("emp_mobile")
	private String empMobile;
    /**
     * 部门id
     */
	@TableField("dept_id")
	private String deptId;
    /**
     * 部门名称
     */
	@TableField("dept_name")
	private String deptName;
    /**
     * 工种id
     */
	@TableField("job_id")
	private String jobId;
    /**
     * 工种名称
     */
	@TableField("job_name")
	private String jobName;
    /**
     * 数据状态（1 正常 2 逻辑删除）
     */
	private Integer state;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("modified_time")
	private Date modifiedTime;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRosterId() {
		return rosterId;
	}

	public void setRosterId(String rosterId) {
		this.rosterId = rosterId;
	}

	public String getRosterName() {
		return rosterName;
	}

	public void setRosterName(String rosterName) {
		this.rosterName = rosterName;
	}

    public Integer getRosterType() {
        return rosterType;
    }

    public void setRosterType(Integer rosterType) {
        this.rosterType = rosterType;
    }

	public String getBeforeRosterId() {
		return beforeRosterId;
	}

	public void setBeforeRosterId(String beforeRosterId) {
		this.beforeRosterId = beforeRosterId;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getEmpNo() {
		return empNo;
	}

	public void setEmpNo(String empNo) {
		this.empNo = empNo;
	}

	public String getEmpMobile() {
		return empMobile;
	}

	public void setEmpMobile(String empMobile) {
		this.empMobile = empMobile;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getJobId() {
		return jobId;
	}

	public void setJobId(String jobId) {
		this.jobId = jobId;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("AfRosterDetail{");
		sb.append("id='").append(id).append('\'');
		sb.append(", rosterId='").append(rosterId).append('\'');
		sb.append(", rosterName='").append(rosterName).append('\'');
		sb.append(", rosterType=").append(rosterType);
		sb.append(", beforeRosterId='").append(beforeRosterId).append('\'');
		sb.append(", startTime=").append(startTime);
		sb.append(", endTime=").append(endTime);
		sb.append(", empId='").append(empId).append('\'');
		sb.append(", empName='").append(empName).append('\'');
		sb.append(", empNo='").append(empNo).append('\'');
		sb.append(", empMobile='").append(empMobile).append('\'');
		sb.append(", deptId='").append(deptId).append('\'');
		sb.append(", deptName='").append(deptName).append('\'');
		sb.append(", jobId='").append(jobId).append('\'');
		sb.append(", jobName='").append(jobName).append('\'');
		sb.append(", state=").append(state);
		sb.append(", createTime=").append(createTime);
		sb.append(", modifiedTime=").append(modifiedTime);
		sb.append('}');
		return sb.toString();
	}
}
